package cn.anecansaitin.industrialization_expansion.common.item.crafting;

import cn.anecansaitin.industrialization_expansion.ModConstant;
import net.minecraft.item.crafting.IRecipeSerializer;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ModRecipeTypes {
    public static final DeferredRegister<IRecipeSerializer<?>> SERIALIZER = DeferredRegister.create(ForgeRegistries.RECIPE_SERIALIZERS, ModConstant.MOD_ID);
    public static final RegistryObject<ModifiedToolRecipe.Serializer> MODIFIED_TOOL_SERIALIZER = SERIALIZER.register("modified_tool", ModifiedToolRecipe.Serializer::new);

    public static void registry(IEventBus bus) {
        SERIALIZER.register(bus);
    }
}
